projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8383f00
)
Enforce a fixed scale of 1 if no cairo scale support
author
Alexander Larsson
<alexl@redhat.com>
Tue, 20 Aug 2013 08:29:45 +0000
(10:29 +0200)
committer
Alexander Larsson
<alexl@redhat.com>
Tue, 20 Aug 2013 08:29:45 +0000
(10:29 +0200)
We used to just follow the default, which would pick up scale
changes from xsettings, but that is not right if we can't
actually support scales.
gdk/x11/gdkscreen-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkscreen-x11.c
b/gdk/x11/gdkscreen-x11.c
index 5efdf546b733dde59152a6d3ba5c55e2cbfcee27..9f2f833f71c0838915a6d6ab52bd8ce2520b723b 100644
(file)
--- a/
gdk/x11/gdkscreen-x11.c
+++ b/
gdk/x11/gdkscreen-x11.c
@@
-1070,7
+1070,7
@@
_gdk_x11_screen_new (GdkDisplay *display,
#ifdef HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE
scale_str = g_getenv ("GDK_SCALE");
#else
- scale_str =
NULL
;
+ scale_str =
"1"
;
#endif
if (scale_str)
{